package ithema.Test;
import java.util.Scanner;
//	键盘接受一个字符串，程序判断出该字符串是否是对称字符串，并在控制台打印是或不是
//对称字符串：123321、111
//非对称字符串：123123
public class Test1 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.next();

         boolean flag = fun(str);
        if (flag) {
            System.out.println("是");
        } else {
            System.out.println("不是");
        }
    }

    public static boolean fun(String str) {
        String tmp = str;
        char[] ch = tmp.toCharArray();
        int left = 0;
        int right = tmp.length() - 1;
        while (left <= right) {
            char ret = ch[left];
            ch[left] = ch[right];
            ch[right] = ret;
            left++;
            right--;
        }
        // 将字符数组重新转换为字符串
        String s = new String(ch);
        return s.equals(str);
    }
}
